Skip to content

feat(block-kit): add alert block example - #66

Merged
srtaalej merged 6 commits into
mainfrom
ale-docs-add-alertblock
Sep 1, 2026
Merged

feat(block-kit): add alert block example#66
srtaalej merged 6 commits into
mainfrom
ale-docs-add-alertblock

Conversation

@srtaalej

Copy link
Copy Markdown
Contributor

Adds Alert.java with an info-level alert example matching the docs JSON.

@srtaalej
srtaalej marked this pull request as ready for review August 27, 2026 20:19
@srtaalej
srtaalej requested a review from a team as a code owner August 27, 2026 20:19
@srtaalej srtaalej self-assigned this Aug 27, 2026
@srtaalej srtaalej added the documentation Improvements or additions to documentation label Aug 27, 2026

@zimeg zimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srtaalej

Copy link
Copy Markdown
Contributor Author

thanks for the review @zimeg! tests and README have been updated 😁

@srtaalej
srtaalej requested a review from zimeg August 28, 2026 14:28

@zimeg zimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srtaalej Thanks so much for a complete example for reference! After this merges we should highlight and celebrate it on https://docs.slack.dev/reference/block-kit/blocks/alert-block 🪬 ✨

Comment on lines +17 to +18
Blocks.alert(a -> a.text(BlockCompositions.markdownText("The work is mysterious and important."))
.level("info"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦆 praise: Indeed it said.

Comment on lines +18 to +21
"text": {
"type": "mrkdwn",
"text": "The work is mysterious and important."
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️‍🗨️ question: I notice the verbatim field from plain JSON example isn't included here or in earlier changes of python which makes me wonder if it's another field of mrkdwn text for follow up?

🔗 https://github.com/slack-samples/bolt-python-examples/blob/2f3a1b70c08c5d794c93b5dce602795098b343e1/block-kit/tests/blocks/test_alert.py#L6

@zimeg zimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌚 Another comment but still LGTM for whenever's right to merge!

Comment thread block-kit/src/main/java/blocks/Alert.java Outdated
@zimeg zimeg changed the title feat: add alert block example feat(block-kit): add alert block example Sep 1, 2026
@zimeg zimeg added enhancement New feature or request java Pull requests that update java code labels Sep 1, 2026
@srtaalej
srtaalej merged commit 52b16ca into main Sep 1, 2026
4 checks passed
@srtaalej
srtaalej deleted the ale-docs-add-alertblock branch September 1, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants